package xyz.hubery.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * 管理员服务
 */
@FeignClient(name = "admin-service",contextId = "AdminServiceFeign",configuration = OAuthFeignConfig.class, path = "/users")
public interface AdminServiceFeign {

    @GetMapping("/admin-name/{adminId}")
    String getAdminName(@PathVariable("adminId")Long adminId);
}
